from django.http.response import HttpResponse
from django.shortcuts import render
from datetime import datetime

# Create your views here.

def index(request):
    """过滤器"""
    title = "维度介绍"
    content = '维度详情:<a href="https://www.baidu.com/">点击查看</a>'
    now = datetime.now()
    filesize = 1238463546
    address = ["北京","朝阳区","123号"]
    mobile = '17683998425'
    sex = 0
    data_list = [
        {"id":1,"name":"python","price":32.16},
        {"id":2,"name":"java","price":46.74},
        {"id":3,"name":"js","price":100.00},
        {"id":4,"name":"c","price":123.45},
        {"id":5,"name":"c++","price":37.09},
        {"id":6,"name":"c#","price":69.88},
        {"id":7,"name":"PHP","price":45.06},
    ]
    return render(request, 'index.html',locals())